import { getLimit } from '../airRealTimeDataMap/data';
export const m_CurrentTypeIndicator_list = [
	{
		label: 'AQI',
		name: 'AQI',
	},
	{
		label: 'PM2.5',
		name: 'pmtwIaqi',
	},
	{
		label: 'PM10',
		name: 'pmteIaqi',
	},
	{
		label: 'SO₂',
		name: 'so2Iaqi',
	},
	{
		label: 'NO₂',
		name: 'no2Iaqi',
	},
	{
		label: 'CO',
		name: 'coIaqi',
	},
	{
		label: 'O₃',
		name: 'o3Iaqi',
	},
	{
		label: '温度',
		name: 'temperature',
	},
	{
		label: '湿度',
		name: 'humidity',
	},
	{
		label: '风速',
		name: 'windSpeed',
	},
	{
		label: '气压',
		name: 'pressure',
	},
	{
		label: 'VOC',
		name: 'tvoc',
	},
];
export const rangeTime = [
	{
		label: '小时',
		name: 'HourlyAvg',
		mode: 'datetime',
	},
	{
		label: '日',
		name: 'DailyAvg',
		mode: 'datetime',
	},
	{
		label: '月',
		name: 'MonthlyAvg',
		mode: 'month',
	},
	// {
	// 	label: '季度',
	// 	name: 'QuarterlyAvg',
	// 	mode: 'quarter',
	// },
	// {
	// 	label: '年',
	// 	name: 'YearlyAvg',
	// 	mode: 'year',
	// },
];

export const get$limit = () => {
	let o = getLimit();
	for (const i in o) {
		Object.assign(o[i], {
			AQI: [
				{ Con_Lower: 0, Con_Upper: 50 },
				{ Con_Lower: 50, Con_Upper: 100 },
				{ Con_Lower: 100, Con_Upper: 150 },
				{ Con_Lower: 150, Con_Upper: 200 },
				{ Con_Lower: 200, Con_Upper: 300 },
				{ Con_Lower: 300, Con_Upper: 500 },
			],
			Temperature: [
				{ Con_Upper: -20 },
				{ Con_Upper: -10 },
				{ Con_Upper: 0 },
				{ Con_Upper: 10 },
				{ Con_Upper: 20 },
				{ Con_Upper: 30 },
				{ Con_Upper: 40 },
			],
			Humidity: [{ Con_Upper: 0 }, { Con_Upper: 15 }, { Con_Upper: 30 }, { Con_Upper: 45 }, { Con_Upper: 60 }, { Con_Upper: 75 }, { Con_Upper: 90 }],
			WindSpeed: [{ Con_Upper: 5 }, { Con_Upper: 11 }, { Con_Upper: 19 }, { Con_Upper: 28 }, { Con_Upper: 38 }, { Con_Upper: 49 }, { Con_Upper: 61 }],
			Illumination: [
				{ Con_Upper: 0 },
				{ Con_Upper: 15000 },
				{ Con_Upper: 30000 },
				{ Con_Upper: 45000 },
				{ Con_Upper: 60000 },
				{ Con_Upper: 75000 },
				{ Con_Upper: 90000 },
			],
			AtmosphericPressure: [
				{ Con_Upper: 90 },
				{ Con_Upper: 95 },
				{ Con_Upper: 100 },
				{ Con_Upper: 105 },
				{ Con_Upper: 110 },
				{ Con_Upper: 115 },
				{ Con_Upper: 120 },
			],
		});
	}
	return o;
};
